﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using service =  global::TimeService;
using System.ServiceModel;
public partial class _Default : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {


    }
    protected void Unnamed1_Click(object sender, EventArgs e)
    {

        var ch = new ChannelFactory<service.ITimeService>("timeconfig");
        var c =  ch.CreateChannel();

        var req = new TimeService.GetTimeRequest() { };


        Response.Write(c.GetTime(req).time);  



        




    }
}